package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.QueryObject.StrategyCommentQuery;
import cn.wolfcode.luowowo.domain.Strategy;
import cn.wolfcode.luowowo.domain.StrategyComment;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 攻略评论服务接口
 */
public interface IStrategyCommentService {


    /**
     * 获取单个攻略评论
     *
     * @param id
     * @return
     */
    StrategyComment get(String id);

    /**
     * 获取攻略评论列表
     *
     * @return
     */
    List<StrategyComment> list();

    /**
     * 添加攻略评论
     *
     * @param strategyComment
     */
    void addComment(StrategyComment strategyComment);

    /**
     * 攻略评论的分页查询
     * @param qo
     * @return
     */
    Page<StrategyComment> query(StrategyCommentQuery qo);

    /**
     * 攻略评论点赞
     * @param cid
     * @param uid
     */
    void commentThumb(String cid, String uid);
}
